//
//  PictureDetailCollectionViewCell.m
//  Project_A Gary
//
//  Created by leilei on 16/3/31.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "PictureDetailCollectionViewCell.h"



@implementation PictureDetailCollectionViewCell

- (void)dealloc
{
    [_imgView release];
    [_lab release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
        self.imgView.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.imgView];
        [_imgView release];
        
        self.lab = [[UILabel alloc] init];
        self.lab.backgroundColor = [UIColor whiteColor];
        self.lab.textColor = [UIColor whiteColor];
        self.lab.numberOfLines = 0;
        [self.contentView addSubview:self.lab];
        [_lab release];
        
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    self.imgView.frame = layoutAttributes.bounds;
    self.lab.frame = CGRectMake(0, BOUNDS_HEIGHT - 100, BOUNDS_WIDTH, 100);
}



@end
